package org.ccheng.xztx.domain;

import lombok.Data;
import org.ccheng.common.annotation.Attribute;
import org.ccheng.common.annotation.AttributeId;

@Data
public class ContestUser {

    @AttributeId
    @Attribute(regex = "(?<=<br/><a.{0,150}userId=)\\d+(?='>)")
    private String userId;

    @Attribute(regex = "(?<=<br/><a.{0,150}>).{0,20}(?=</a>\\()")
    private String username;

    @Attribute(regex = "(?<=<a href='/xyz)\\S+(?=\\?sid.{0,100}>斗法</a>)")
    private String api;

    private UserInfo userInfo;
}
